<template>
  <div class="eleme">
    <van-nav-bar
      title="饿了么优惠券"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
      fixed
      placeholder
    />
    <van-tabs class="tabs" sticky offset-top="46">
      <van-tab title="微信小程序码"><img src="http://img.xyyhome.com/el2.jpg" alt=""></van-tab>
      <van-tab title="淘宝二维码"><img src="http://img.xyyhome.com/el1.jpg" alt=""></van-tab>
    </van-tabs>
  </div>
</template>

<script>
import { Tab, Tabs, NavBar } from "vant";
export default {
  name: "Eleme",
  components: {
    [Tab.name]: Tab,
    [Tabs.name]: Tabs,
    [NavBar.name]: NavBar
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    }
  }
};
</script>

<style scoped>
.tabs img {
    width: 100%;
}
</style>